# Base image for etcd server
FROM        docker.repo:5000/ppc64le/centos_base
MAINTAINER  Andy Zhang <zch@cn.ibm.com>
ENV         container=docker

# Install etcd
ARG         FILESERVER=http://172.16.0.164:8080/base_image
ARG         INST_DIR=/var/setup
RUN         mkdir $INST_DIR
WORKDIR     $INST_DIR
ADD         $FILESERVER/etcd2.2.5.tgz .
RUN         tar -xzvf etcd2.2.5.tgz \
            && mv etcd2.2.5/* /bin/ \
            && rm -fr etcd*
EXPOSE      4001 7001
COPY        run.sh /bin/run.sh
ENTRYPOINT  ["/bin/run.sh"]
LABEL        version="{{ image_version }}"
